SMAHA05020_청구관리[일반건진].xfdl 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA05020" position="absolute 0 0 1196 760" titletext="청구관리" onload="SMAHA05020_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_savecret" taborder="1" text="청구생성" class="btn4" position="absolute 951 737 1031 759" anchor="right bottom" onclick="btn_savecret_onclick"/>
  8. <Button id="btn_savaincm" taborder="2" text="입금저장" class="btn4" position="absolute 1033 737 1113 759" anchor="right bottom" onclick="btn_savaincm_onclick"/>
  9. <Button id="btn_clamcncl" taborder="3" text="청구취소" class="btn4" position="absolute 1115 737 1195 759" anchor="right bottom" onclick="btn_clamcncl_onclick"/>
  10. <Tab id="swt_req" anchor="all" taborder="4" tabindex="0" position="absolute 0 27 1195 739">
  11. <Tabpages>
  12. <Tabpage id="case_cret" text="청구생성" scrollbars="none" selected="true">
  13. <Layouts>
  14. <Layout>
  15. <Div id="grp_sea" taborder="1" class="div_SA2" position="absolute 0 0 1195 60" anchor="left top right">
  16. <Layouts>
  17. <Layout>
  18. <Static id="caption" text="~" position="absolute 418 9 431 25"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="caption1" text="건진구분 :" class="search_name" position="absolute 5 7 103 24"/>
  23. <Combo id="combo1" taborder="2" innerdataset="ds_init_baseinfo_hedetlflaglst_item" codecolumn="cdid" datacolumn="cdnm" enable="false" position="absolute 89 6 219 25" columncount="-1" rowcount="-1"/>
  24. <Static id="caption10" text="건진일자 :" class="search_name" position="absolute 232 7 310 24"/>
  25. <Calendar id="ipt_rsvfrdd" taborder="3" autoselect="true" class="input_s_essential" position="absolute 309 6 412 25" autoskip="true"/>
  26. <Calendar id="ipt_rsvtodd" taborder="4" autoselect="true" class="input_s_essential" position="absolute 435 6 538 25"/>
  27. <Static id="caption15" text="건진구분 :" class="search_name" position="absolute 550 7 628 24"/>
  28. <Combo id="cmb_srchhealexamgubun1" taborder="5" innerdataset="ds_init_baseinfo_healexamgubun_A0088" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 624 6 734 25" columncount="-1" rowcount="-1"/>
  29. <Static id="caption36" text="건진장소 :" class="search_name" position="absolute 750 7 831 24"/>
  30. <Combo id="cmb_srchplceflag" taborder="6" innerdataset="ds_init_baseinfo_plceflag_A0110" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 828 6 906 25" columncount="-1" rowcount="-1"/>
  31. <Static id="caption7" text="청구구분 :" class="search_name" position="absolute 919 7 997 24"/>
  32. <Combo id="cmb_reqtype" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 997 6 1107 25" columncount="-1" rowcount="-1">
  33. <Dataset id="innerdataset">
  34. <ColumnInfo>
  35. <Column id="codecolumn"/>
  36. <Column id="datacolumn"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="codecolumn">1</Col>
  41. <Col id="datacolumn">일반건진</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">2</Col>
  45. <Col id="datacolumn">구강건진</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">3</Col>
  49. <Col id="datacolumn">암건진</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">4</Col>
  53. <Col id="datacolumn">영유아검진</Col>
  54. </Row>
  55. </Rows>
  56. </Dataset>
  57. </Combo>
  58. <Static id="caption4" text="사 업 장 :" class="search_name" position="absolute 5 33 91 50"/>
  59. <Edit id="ipt_srchcmpycd" taborder="8" autoselect="true" class="input_search" position="absolute 88 32 173 51" onkeyup="swt_req_case_cret_ipt_srchcmpycd_onkeyup"/>
  60. <Button id="btn_selcmpy" taborder="9" class="icon_search" position="absolute 179 33 195 49" onclick="swt_req_case_cret_btn_selcmpy_onclick"/>
  61. <Edit id="opt_srchcmpynm" taborder="10" readonly="true" class="output" position="absolute 202 33 387 52"/>
  62. <Static id="caption16" text="파일명 :" class="search_name" position="absolute 423 35 493 52"/>
  63. <Edit id="input1" taborder="11" autoselect="true" class="input_search" position="absolute 490 33 695 52"/>
  64. <Button id="btn_srch" taborder="12" text="조회" class="btn1" position="absolute 1126 19 1182 41" anchor="top right" onclick="swt_req_case_cret_btn_srch_onclick"/>
  65. <Static id="caption3" text="청구대상자" class="tit_2" position="absolute 0 68 111 90"/>
  66. <Static id="caption2" text="건" position="absolute 260 68 282 82" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  67. <Button id="button1" taborder="16" text="엑셀저장" class="btn7" position="absolute 1115 62 1195 84" anchor="top right" onclick="swt_req_case_cret_button1_onclick"/>
  68. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1120 3 1123 55" anchor="top right"/>
  69. <Shape id="line2" class="line_1" position="absolute 0 85 1195 88" style="strokepen:5 solid #33bbbbff;" anchor="left top right"/>
  70. <Grid id="grd_reqcretlst" taborder="17" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" onheadclick="grp_biz_swt_req_case_cret_grd_reqcretlst_onheadclick" ontextchanged="grp_biz_swt_req_case_cret_grd_reqcretlst_ontextchanged" position="absolute 0 89 1195 680" anchor="all" onaftersort="grp_biz_swt_req_case_cret_grd_reqcretlst_onaftersort" binddataset="ds_main_reqtrgtlst_item" onmouseup="swt_req_case_cret_grd_reqcretlst_onmouseup" cellclickbound="cell" selecttype="multirow" onlbuttonup="swt_req_case_cret_grd_reqcretlst_onlbuttonup">
  71. <Formats>
  72. <Format id="default">
  73. <Columns>
  74. <Column size="24"/>
  75. <Column size="40"/>
  76. <Column size="100"/>
  77. <Column size="150"/>
  78. <Column size="100"/>
  79. <Column size="100"/>
  80. <Column size="100"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. <Column size="100"/>
  84. <Column size="258"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. </Columns>
  93. <Rows>
  94. <Row size="24" band="head"/>
  95. <Row size="24"/>
  96. </Rows>
  97. <Band id="head">
  98. <Cell/>
  99. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  100. <Cell col="2" text="성명"/>
  101. <Cell col="3" text="주민번호"/>
  102. <Cell col="4" text="공단금액"/>
  103. <Cell col="5" text="보건소(국고)금액"/>
  104. <Cell col="6" text="건진일자"/>
  105. <Cell col="7" text="등록번호"/>
  106. <Cell col="8" text="1_2차구분"/>
  107. <Cell col="9" text="패키지"/>
  108. <Cell col="10" text="패키지명"/>
  109. <Cell col="11" text="healexamflag"/>
  110. <Cell col="12" text="healexamdetlflag"/>
  111. <Cell col="13" text="rsrvdd"/>
  112. <Cell col="14" text="rsrvno"/>
  113. <Cell col="15" text="cretflag"/>
  114. <Cell col="16" text="sisfilename"/>
  115. <Cell col="17" text="healexamgubun"/>
  116. <Cell col="18" text="plceflag"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell celltype="head" expr="currow+1"/>
  120. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  121. <Cell col="2" text="bind:hngnm" suppress="2" suppressalign="middle,over"/>
  122. <Cell col="3" text="bind:rrgstno" mask="######-#######" maskchar=" " suppress="1" suppressalign="middle,over"/>
  123. <Cell col="4" displaytype="number" text="bind:payinsubamt"/>
  124. <Cell col="5" displaytype="number" text="bind:payhealcntramt"/>
  125. <Cell col="6" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  126. <Cell col="7" displaytype="text" text="bind:pid"/>
  127. <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:dgflag" combodataset="ds_cmb_dgflag" combocodecol="value" combodatacol="label"/>
  128. <Cell col="9" displaytype="text" style="align:left middle;" text="bind:pkgcd"/>
  129. <Cell col="10" displaytype="text" style="align:left middle;" text="bind:pkgnm" wordwrap="word"/>
  130. <Cell col="11" text="bind:healexamflag"/>
  131. <Cell col="12" text="bind:healexamdetlflag"/>
  132. <Cell col="13" text="bind:rsrvdd"/>
  133. <Cell col="14" text="bind:rsrvno"/>
  134. <Cell col="15" text="bind:cretflag"/>
  135. <Cell col="16" text="bind:sisfilename"/>
  136. <Cell col="17" text="bind:healexamgubun"/>
  137. <Cell col="18" text="bind:plceflag"/>
  138. </Band>
  139. </Format>
  140. </Formats>
  141. </Grid>
  142. <MaskEdit id="count" taborder="18" position="absolute 221 65 257 84" mask="9,9999999999999" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  143. <MaskEdit id="payinsubamt" taborder="19" mask="9,9999999999999" position="absolute 333 65 425 84" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  144. <MaskEdit id="payhealcntramt" taborder="20" mask="9,9999999999999" position="absolute 426 65 518 84" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  145. <MaskEdit id="count2" taborder="21" mask="9,9999999999999" position="absolute 277 65 313 84" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  146. <Static id="caption00" text="명" position="absolute 316 68 338 82" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  147. </Layout>
  148. </Layouts>
  149. </Tabpage>
  150. <Tabpage id="case_mngt" text="청구/반송관리" scrollbars="none">
  151. <Layouts>
  152. <Layout>
  153. <Div id="grp_sea" taborder="1" class="div_SA2" position="absolute 0 0 1195 60" anchor="left top right">
  154. <Layouts>
  155. <Layout width="1195" height="60"/>
  156. </Layouts>
  157. </Div>
  158. <Static id="caption5" text="청구일자 :" class="search_name" position="absolute 5 10 103 27"/>
  159. <Calendar id="ipt_clamfromdd" taborder="2" autoselect="true" class="input_s_essential" position="absolute 83 8 186 27" autoskip="true"/>
  160. <Static id="caption9" text="~" class="search_n_b" position="absolute 190 9 202 26" style="font:,,bolder;"/>
  161. <Calendar id="ipt_clamtodd" taborder="3" autoselect="true" class="input_s_essential" position="absolute 205 8 308 27"/>
  162. <Static id="caption13" text="청구상태 :" class="search_name" position="absolute 322 10 420 27"/>
  163. <cp_checkboxList id="checkbox1" titletext="CheckBox List" taborder="4" text="checkbox1" scrollbars="none" position="absolute 398 7 578 27" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  164. <Static id="caption8" text="건진구분 :" class="search_name" position="absolute 590 7 684 24"/>
  165. <Combo id="cmb_srchhealexamgubun2" taborder="5" innerdataset="ds_init_baseinfo_healexamgubun_A0088" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 669 6 749 25" columncount="-1" rowcount="-1"/>
  166. <Static id="caption11" text="건진장소 :" class="search_name" position="absolute 764 8 853 25"/>
  167. <Combo id="cmb_srchplceflag2" taborder="6" innerdataset="ds_init_baseinfo_plceflag_A0110" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 845 6 905 25" columncount="-1" rowcount="-1"/>
  168. <Static id="caption12" text="청구구분 :" class="search_name" position="absolute 923 8 1005 25"/>
  169. <Combo id="combo3" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 1005 6 1085 25" columncount="-1" rowcount="-1">
  170. <Dataset id="innerdataset">
  171. <ColumnInfo>
  172. <Column id="codecolumn"/>
  173. <Column id="datacolumn"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="codecolumn"/>
  178. <Col id="datacolumn">전체</Col>
  179. </Row>
  180. <Row>
  181. <Col id="codecolumn">1</Col>
  182. <Col id="datacolumn">일반건진</Col>
  183. </Row>
  184. <Row>
  185. <Col id="codecolumn">2</Col>
  186. <Col id="datacolumn">구강건진</Col>
  187. </Row>
  188. <Row>
  189. <Col id="codecolumn">3</Col>
  190. <Col id="datacolumn">암건진</Col>
  191. </Row>
  192. <Row>
  193. <Col id="codecolumn">4</Col>
  194. <Col id="datacolumn">영유아검진</Col>
  195. </Row>
  196. </Rows>
  197. </Dataset>
  198. </Combo>
  199. <Static id="caption14" text="파일명 :" class="search_name" position="absolute 5 35 103 52"/>
  200. <Edit id="input4" taborder="8" autoselect="true" class="combo_search" position="absolute 83 33 358 52" onkeyup="swt_req_case_mngt_input4_onkeyup"/>
  201. <Button id="btn_srch2" taborder="9" text="조회" class="btn1" position="absolute 1125 19 1181 41" anchor="top right" onclick="swt_req_case_mngt_btn_srch2_onclick"/>
  202. <Static id="caption17" text="청구내역" class="tit_2" position="absolute 0 68 111 89"/>
  203. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1118 6 1121 49" anchor="top right"/>
  204. <Shape id="line4" class="line_10" position="absolute 0 82 1195 93" anchor="left top right"/>
  205. <Button id="button2" taborder="10" text="엑셀저장" class="btn7" position="absolute 1115 62 1195 84" anchor="top right" onclick="swt_req_case_mngt_button2_onclick"/>
  206. <Button id="button8" taborder="11" text="저장" class="btn5" position="absolute 1005 62 1047 84" anchor="top right" onclick="swt_req_case_mngt_button8_onclick"/>
  207. <Button id="button3" taborder="12" text="일괄입력" class="btn5" position="absolute 1049 62 1113 84" anchor="top right" onclick="swt_req_case_mngt_button3_onclick"/>
  208. <Grid id="grd_reqlst" taborder="13" binddataset="ds_main_reqlst_item" autoenter="select" useinputpanel="false" cellsizingtype="col" oncellclick="grp_biz_swt_req_case_mngt_grd_reqlst_oncellclick" onheadclick="grp_biz_swt_req_case_mngt_grd_reqlst_onheadclick" position="absolute 0 89 1195 247" anchor="left top right" onaftersort="grp_biz_swt_req_case_mngt_grd_reqlst_onaftersort" cellclickbound="cell">
  209. <Formats>
  210. <Format id="default">
  211. <Columns>
  212. <Column size="25"/>
  213. <Column size="38"/>
  214. <Column size="80"/>
  215. <Column size="90"/>
  216. <Column size="70"/>
  217. <Column size="200"/>
  218. <Column size="200"/>
  219. <Column size="80"/>
  220. <Column size="80"/>
  221. <Column size="80"/>
  222. <Column size="80"/>
  223. <Column size="80"/>
  224. <Column size="80"/>
  225. <Column size="80"/>
  226. <Column size="107"/>
  227. <Column size="119"/>
  228. <Column size="123"/>
  229. <Column size="122"/>
  230. <Column size="118"/>
  231. <Column size="115"/>
  232. <Column size="80"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="80"/>
  236. <Column size="0"/>
  237. </Columns>
  238. <Rows>
  239. <Row size="24" band="head"/>
  240. <Row size="24"/>
  241. <Row size="24" band="summ"/>
  242. </Rows>
  243. <Band id="head">
  244. <Cell/>
  245. <Cell col="1" text="선택"/>
  246. <Cell col="2" text="청구일자"/>
  247. <Cell col="3" text="청구구분"/>
  248. <Cell col="4" text="건진장소"/>
  249. <Cell col="5" text="파일명"/>
  250. <Cell col="6" text="비고"/>
  251. <Cell col="7" text="청구금액"/>
  252. <Cell col="8" text="공단금액"/>
  253. <Cell col="9" text="공단조정액"/>
  254. <Cell col="10" text="공단입금액"/>
  255. <Cell col="11" text="공단삭감액"/>
  256. <Cell col="12" text="공단절사액"/>
  257. <Cell col="13" text="공단추가액"/>
  258. <Cell col="14" text="보건소(국고)금액"/>
  259. <Cell col="15" text="보건소(국고)조정액"/>
  260. <Cell col="16" text="보건소(국고)입금액"/>
  261. <Cell col="17" text="보건소(국고)삭감액"/>
  262. <Cell col="18" text="보건소(국고)절사액"/>
  263. <Cell col="19" text="보건소(국고)추가액"/>
  264. <Cell col="20" text="청구상태"/>
  265. <Cell col="21" text="청구처코드"/>
  266. <Cell col="22" text="반환내역"/>
  267. <Cell col="23" text="청구번호"/>
  268. <Cell col="24" text="healexamgubun"/>
  269. </Band>
  270. <Band id="body">
  271. <Cell celltype="head" displaytype="normal" edittype="none" expr="currow+1"/>
  272. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  273. <Cell col="2" displaytype="date" text="bind:clamdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  274. <Cell col="3" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:cretflag" combodataset="ds_cmb_cretflag" combocodecol="value" combodatacol="label"/>
  275. <Cell col="4" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:plceflag" combodataset="ds_init_baseinfo_plceflag_A0110" combocodecol="cdid" combodatacol="cdnm"/>
  276. <Cell col="5" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:sisfilename"/>
  277. <Cell col="6" displaytype="text" edittype="text" text="bind:remfact"/>
  278. <Cell col="7" displaytype="number" text="bind:clamamt"/>
  279. <Cell col="8" displaytype="number" text="bind:payinsubamt"/>
  280. <Cell col="9" displaytype="number" text="bind:insuadjustamt"/>
  281. <Cell col="10" displaytype="number" text="bind:incminsuamt"/>
  282. <Cell col="11" displaytype="number" text="bind:insureduamt"/>
  283. <Cell col="12" displaytype="number" text="bind:insurestamt"/>
  284. <Cell col="13" displaytype="number" text="bind:insuaddamt"/>
  285. <Cell col="14" displaytype="number" text="bind:payhealcntramt"/>
  286. <Cell col="15" displaytype="number" text="bind:healcntradjustamt"/>
  287. <Cell col="16" displaytype="number" text="bind:incmhealcntramt"/>
  288. <Cell col="17" displaytype="number" text="bind:healcntrreduamt"/>
  289. <Cell col="18" displaytype="number" text="bind:healcntrrestamt"/>
  290. <Cell col="19" displaytype="number" text="bind:healcntraddamt"/>
  291. <Cell col="20" displaytype="combo" style="align:center middle;" text="bind:clamstat" combodataset="ds_cmb_clamstat" combocodecol="value" combodatacol="label"/>
  292. <Cell col="21" text="bind:clamtrgtcd"/>
  293. <Cell col="22" displaytype="checkbox" edittype="checkbox" text="bind:rtnchkyn" expr="expr:rtnchkyn == 'Y' ? 1 : 0"/>
  294. <Cell col="23" displaytype="text" text="bind:clamseqno"/>
  295. <Cell col="24" text="bind:healexamgubun"/>
  296. </Band>
  297. <Band id="summary">
  298. <Cell style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  299. <Cell col="1" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  300. <Cell col="2" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="총계"/>
  301. <Cell col="3" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  302. <Cell col="4" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  303. <Cell col="5" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  304. <Cell col="6" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  305. <Cell col="7" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('clamamt');"/>
  306. <Cell col="8" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('payinsubamt');"/>
  307. <Cell col="9" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insuadjustamt');"/>
  308. <Cell col="10" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('incminsuamt');"/>
  309. <Cell col="11" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insureduamt');"/>
  310. <Cell col="12" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insurestamt');"/>
  311. <Cell col="13" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insuaddamt');"/>
  312. <Cell col="14" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('payhealcntramt');"/>
  313. <Cell col="15" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntradjustamt');"/>
  314. <Cell col="16" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('incmhealcntramt');"/>
  315. <Cell col="17" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntrreduamt');"/>
  316. <Cell col="18" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntrrestamt');"/>
  317. <Cell col="19" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntraddamt');"/>
  318. <Cell col="20" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  319. <Cell col="21" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  320. <Cell col="22" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  321. <Cell col="23" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  322. <Cell col="24" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  323. </Band>
  324. </Format>
  325. </Formats>
  326. </Grid>
  327. <Tab id="switch1" anchor="all" taborder="14" onchanged="grp_biz_swt_req_case_mngt_switch1_onchanged" tabindex="0" position="absolute 0 249 1195 690">
  328. <Tabpages>
  329. <Tabpage id="case_clam" text="청구내역" selected="true">
  330. <Layouts>
  331. <Layout>
  332. <Static id="caption18" text="청구상세내역" class="tit_2" position="absolute 0 7 111 28"/>
  333. <Shape id="line5" class="line_10" position="absolute 0 21 1195 32" anchor="left top right"/>
  334. <Button id="btn_rtn2" taborder="1" text="환자검색" class="btn5" position="absolute 917 1 981 23" anchor="top right" onclick="swt_req_case_mngt_switch1_case_clam_btn_rtn2_onclick"/>
  335. <Button id="btn_rtn" taborder="2" text="선택반환" class="btn5" position="absolute 983 1 1047 23" anchor="top right" onclick="swt_req_case_mngt_switch1_case_clam_btn_rtn_onclick"/>
  336. <Button id="button4" taborder="3" text="일괄입력" class="btn5" position="absolute 1049 1 1113 23" anchor="top right" onclick="swt_req_case_mngt_switch1_case_clam_button4_onclick"/>
  337. <Button id="btn_detlexcel" taborder="4" text="엑셀저장" class="btn7" position="absolute 1115 1 1195 23" anchor="top right" onclick="swt_req_case_mngt_switch1_case_clam_btn_detlexcel_onclick"/>
  338. <Grid id="grd_reqdetllst" taborder="5" binddataset="ds_main_reqdetllst_item" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" onheadclick="grp_biz_swt_req_case_mngt_switch1_case_clam_grd_reqdetllst_onheadclick" position="absolute 0 28 1195 401" anchor="all" style="color:#ff0000;" onaftersort="grp_biz_swt_req_case_mngt_switch1_case_clam_grd_reqdetllst_onaftersort" cellclickbound="cell">
  339. <Formats>
  340. <Format id="default">
  341. <Columns>
  342. <Column size="20"/>
  343. <Column size="25"/>
  344. <Column size="73"/>
  345. <Column size="0"/>
  346. <Column size="57"/>
  347. <Column size="94"/>
  348. <Column size="55"/>
  349. <Column size="60"/>
  350. <Column size="60"/>
  351. <Column size="60"/>
  352. <Column size="60"/>
  353. <Column size="60"/>
  354. <Column size="60"/>
  355. <Column size="78"/>
  356. <Column size="60"/>
  357. <Column size="60"/>
  358. <Column size="60"/>
  359. <Column size="60"/>
  360. <Column size="60"/>
  361. <Column size="87"/>
  362. <Column size="0"/>
  363. <Column size="0"/>
  364. <Column size="0"/>
  365. <Column size="0"/>
  366. <Column size="0"/>
  367. </Columns>
  368. <Rows>
  369. <Row size="24" band="head"/>
  370. <Row size="24"/>
  371. <Row size="24" band="summ"/>
  372. </Rows>
  373. <Band id="head">
  374. <Cell/>
  375. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  376. <Cell col="2" text="청구일자"/>
  377. <Cell col="3" text="청구번호"/>
  378. <Cell col="4" text="성명"/>
  379. <Cell col="5" text="주민번호"/>
  380. <Cell col="6" text="등록번호"/>
  381. <Cell col="7" text="청구금액"/>
  382. <Cell col="8" text="공단"/>
  383. <Cell col="9" text="조정액"/>
  384. <Cell col="10" text="삭감액"/>
  385. <Cell col="11" text="절사액"/>
  386. <Cell col="12" text="추가액"/>
  387. <Cell col="13" text="보건소(국고)"/>
  388. <Cell col="14" text="조정액"/>
  389. <Cell col="15" text="삭감액"/>
  390. <Cell col="16" text="절사액"/>
  391. <Cell col="17" text="추가액"/>
  392. <Cell col="18" text="청구상태"/>
  393. <Cell col="19" text="검사코드"/>
  394. <Cell col="20" text="healexamflag"/>
  395. <Cell col="21" text="rsrvdd"/>
  396. <Cell col="22" text="rsrvno"/>
  397. <Cell col="23" text="healexamgubun"/>
  398. <Cell col="24" text="plceflag"/>
  399. </Band>
  400. <Band id="body">
  401. <Cell celltype="head" expr="currow+1"/>
  402. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  403. <Cell col="2" displaytype="date" text="bind:clamdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  404. <Cell col="3" text="bind:clamseqno"/>
  405. <Cell col="4" text="bind:hngnm"/>
  406. <Cell col="5" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
  407. <Cell col="6" text="bind:pid"/>
  408. <Cell col="7" displaytype="number" text="bind:clamamt"/>
  409. <Cell col="8" displaytype="number" text="bind:payinsubamt"/>
  410. <Cell col="9" displaytype="number" edittype="masknumber" text="bind:insuadjustamt" editautoselect="true"/>
  411. <Cell col="10" displaytype="number" edittype="masknumber" text="bind:insureduamt" editautoselect="true"/>
  412. <Cell col="11" displaytype="number" edittype="masknumber" text="bind:insurestamt" editautoselect="true"/>
  413. <Cell col="12" displaytype="number" edittype="masknumber" text="bind:insuaddamt" editautoselect="true"/>
  414. <Cell col="13" displaytype="number" text="bind:payhealcntramt"/>
  415. <Cell col="14" displaytype="number" edittype="masknumber" text="bind:healcntradjustamt" editautoselect="true"/>
  416. <Cell col="15" displaytype="number" edittype="masknumber" text="bind:healcntrreduamt" editautoselect="true"/>
  417. <Cell col="16" displaytype="number" edittype="masknumber" text="bind:healcntrrestamt" editautoselect="true"/>
  418. <Cell col="17" displaytype="number" edittype="masknumber" text="bind:healcntraddamt" editautoselect="true"/>
  419. <Cell col="18" displaytype="combo" style="align:center middle;" text="bind:clamstat" combodataset="ds_cmb_clamstat" combocodecol="value" combodatacol="label"/>
  420. <Cell col="19" style="align:left middle;" text="bind:testcd"/>
  421. <Cell col="20" text="bind:healexamflag"/>
  422. <Cell col="21" text="bind:rsrvdd"/>
  423. <Cell col="22" text="bind:rsrvno"/>
  424. <Cell col="23" text="bind:healexamgubun"/>
  425. <Cell col="24" text="bind:plceflag"/>
  426. </Band>
  427. <Band id="summary">
  428. <Cell style="background:#99ff99ff;background2:#99ff99ff;"/>
  429. <Cell col="1" style="background:#99ff99ff;background2:#99ff99ff;"/>
  430. <Cell col="2" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="총계"/>
  431. <Cell col="3" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="총계"/>
  432. <Cell col="4" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  433. <Cell col="5" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  434. <Cell col="6" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  435. <Cell col="7" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('clamamt');"/>
  436. <Cell col="8" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('payinsubamt');"/>
  437. <Cell col="9" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insuadjustamt');"/>
  438. <Cell col="10" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insureduamt');"/>
  439. <Cell col="11" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insurestamt');"/>
  440. <Cell col="12" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('insuaddamt');"/>
  441. <Cell col="13" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('payhealcntramt');"/>
  442. <Cell col="14" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntradjustamt');"/>
  443. <Cell col="15" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntrreduamt');"/>
  444. <Cell col="16" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntrrestamt');"/>
  445. <Cell col="17" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" expr="expr:getSum('healcntraddamt');"/>
  446. <Cell col="18" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  447. <Cell col="19" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  448. <Cell col="20" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  449. <Cell col="21" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  450. <Cell col="22" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  451. <Cell col="23" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  452. <Cell col="24" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  453. </Band>
  454. </Format>
  455. </Formats>
  456. </Grid>
  457. </Layout>
  458. </Layouts>
  459. </Tabpage>
  460. <Tabpage id="case_incm" text="입금내역">
  461. <Layouts>
  462. <Layout>
  463. <Static id="caption19" text="입금내역" class="tit_2" position="absolute 0 8 111 30"/>
  464. <Shape id="line6" class="line_10" position="absolute 0 22 1195 33" anchor="left top right"/>
  465. <Button id="btn_incmexcel" taborder="1" text="엑셀저장" class="btn7" position="absolute 1115 5 1195 24" anchor="top right" onclick="swt_req_case_mngt_switch1_case_incm_btn_incmexcel_onclick"/>
  466. <Grid id="grd_incmlst" taborder="2" binddataset="ds_main_reqdetllst_incm" autoenter="select" useinputpanel="false" cellsizingtype="col" onheadclick="grp_biz_swt_req_case_mngt_switch1_case_incm_grd_incmlst_onheadclick" position="absolute 0 29 1195 402" anchor="all">
  467. <Formats>
  468. <Format id="default">
  469. <Columns>
  470. <Column size="20"/>
  471. <Column size="100"/>
  472. <Column size="80"/>
  473. <Column size="100"/>
  474. <Column size="100"/>
  475. <Column size="100"/>
  476. <Column size="100"/>
  477. <Column size="200"/>
  478. <Column size="100"/>
  479. <Column size="100"/>
  480. <Column size="0"/>
  481. <Column size="0"/>
  482. <Column size="0"/>
  483. <Column size="0"/>
  484. </Columns>
  485. <Rows>
  486. <Row size="24" band="head"/>
  487. <Row size="24"/>
  488. </Rows>
  489. <Band id="head">
  490. <Cell/>
  491. <Cell col="1" text="입금일자"/>
  492. <Cell col="2" text="입금구분"/>
  493. <Cell col="3" text="심자조정금액"/>
  494. <Cell col="4" text="입금액"/>
  495. <Cell col="5" text="삭감액"/>
  496. <Cell col="6" text="절사액"/>
  497. <Cell col="7" text="비고"/>
  498. <Cell col="8" text="입력자"/>
  499. <Cell col="9" text="청구번호"/>
  500. <Cell col="10" text="입금일련번호"/>
  501. <Cell col="11" text="카드현금구분"/>
  502. <Cell col="12" text="청구처코드"/>
  503. <Cell col="13" text="입금상태"/>
  504. <Cell col="14" text="healexamgubun"/>
  505. </Band>
  506. <Band id="body">
  507. <Cell celltype="head" expr="currow+1"/>
  508. <Cell col="1" text="bind:incomedd"/>
  509. <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:incomeflag" combodataset="ds_init_baseinfo_incomeflaglst_A0458" combocodecol="cdid" combodatacol="cdnm"/>
  510. <Cell col="3" displaytype="number" text="bind:chngamt"/>
  511. <Cell col="4" displaytype="number" text="bind:incomeamt"/>
  512. <Cell col="5" displaytype="number" text="bind:discamt"/>
  513. <Cell col="6" displaytype="number" text="bind:restamt"/>
  514. <Cell col="7" displaytype="text" text="bind:remfact"/>
  515. <Cell col="8" text="bind:userid"/>
  516. <Cell col="9" displaytype="text" text="bind:clamseqno"/>
  517. <Cell col="10" text="bind:incomeseqno"/>
  518. <Cell col="11" text="bind:cashcardflag"/>
  519. <Cell col="12" text="bind:clamtrgtcd"/>
  520. <Cell col="13" text="bind:incomestat"/>
  521. <Cell col="14" text="bind:healexamgubun"/>
  522. </Band>
  523. </Format>
  524. </Formats>
  525. </Grid>
  526. </Layout>
  527. </Layouts>
  528. </Tabpage>
  529. </Tabpages>
  530. </Tab>
  531. </Layout>
  532. </Layouts>
  533. </Tabpage>
  534. </Tabpages>
  535. </Tab>
  536. <Static id="caption6" text="공단청구관리" class="tit_1" position="absolute 0 0 178 25"/>
  537. </Layout>
  538. </Layouts>
  539. <Objects>
  540. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  541. <ColumnInfo>
  542. <Column id="srchhealexamflag" type="STRING" size="256"/>
  543. <Column id="srchhealexamgubun" type="STRING" size="256"/>
  544. <Column id="srchhealexamgubun2" type="STRING" size="256"/>
  545. <Column id="srchfromdd" type="STRING" size="256"/>
  546. <Column id="srchtodd" type="STRING" size="256"/>
  547. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  548. <Column id="srchplceflag" type="STRING" size="256"/>
  549. <Column id="srchplceflag2" type="STRING" size="256"/>
  550. <Column id="srchreqtype" type="STRING" size="256"/>
  551. <Column id="srchcmpycd" type="STRING" size="256"/>
  552. <Column id="srchcmpynm" type="STRING" size="256"/>
  553. <Column id="srchclamfromdd" type="STRING" size="256"/>
  554. <Column id="srchclamtodd" type="STRING" size="256"/>
  555. <Column id="srchclamstat" type="STRING" size="256"/>
  556. <Column id="srchclamcretflag" type="STRING" size="256"/>
  557. <Column id="srchclamsisfilename" type="STRING" size="256"/>
  558. <Column id="srchclamseqno" type="STRING" size="256"/>
  559. </ColumnInfo>
  560. <Rows>
  561. <Row>
  562. <Col id="srchhealexamflag"/>
  563. <Col id="srchhealexamgubun"/>
  564. <Col id="srchhealexamgubun2"/>
  565. <Col id="srchfromdd"/>
  566. <Col id="srchtodd"/>
  567. <Col id="srchhealexamdetlflag"/>
  568. <Col id="srchplceflag"/>
  569. <Col id="srchplceflag2"/>
  570. <Col id="srchreqtype"/>
  571. <Col id="srchcmpycd"/>
  572. <Col id="srchcmpynm"/>
  573. <Col id="srchclamfromdd"/>
  574. <Col id="srchclamtodd"/>
  575. <Col id="srchclamstat">N</Col>
  576. <Col id="srchclamcretflag"/>
  577. <Col id="srchclamsisfilename"/>
  578. <Col id="srchclamseqno"/>
  579. </Row>
  580. </Rows>
  581. </Dataset>
  582. <Dataset id="ds_send_cretsave" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  583. <ColumnInfo>
  584. <Column id="reqcret" type="STRING" size="256"/>
  585. <Column id="sisfilename" type="STRING" size="256"/>
  586. </ColumnInfo>
  587. <Rows>
  588. <Row>
  589. <Col id="reqcret"/>
  590. <Col id="sisfilename"/>
  591. </Row>
  592. </Rows>
  593. </Dataset>
  594. <Dataset id="ds_main_reqtrgtlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_reqtrgtlst_item_oncolumnchanged">
  595. <ColumnInfo>
  596. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  597. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  598. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  599. <Column id="orddd" type="STRING" size="256" sumtext="건진일자"/>
  600. <Column id="dgflag" type="STRING" size="256" sumtext="1/2차"/>
  601. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  602. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  603. <Column id="pkgnm" type="STRING" size="256" sumtext="패키지명"/>
  604. <Column id="payinsubamt" type="INT" size="256" sumtext="미수금액"/>
  605. <Column id="payhealcntramt" type="INT" size="256" sumtext="보건소금액"/>
  606. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  607. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  608. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  609. <Column id="rsrvno" type="STRING" size="256" sumtext="예약번호"/>
  610. <Column id="cretflag" type="STRING" size="256" sumtext="청구구분"/>
  611. <Column id="sisfilename" type="STRING" size="256" sumtext="sis파일명"/>
  612. <Column id="healexamgubun" type="STRING" size="256" sumtext="건진구분"/>
  613. <Column id="plceflag" type="STRING" size="256" sumtext="건진장소"/>
  614. </ColumnInfo>
  615. </Dataset>
  616. <Dataset id="ds_cmb_dgflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  617. <ColumnInfo>
  618. <Column id="label" type="STRING" size="256"/>
  619. <Column id="value" type="STRING" size="256"/>
  620. </ColumnInfo>
  621. <Rows>
  622. <Row>
  623. <Col id="label">1차</Col>
  624. <Col id="value">1</Col>
  625. </Row>
  626. <Row>
  627. <Col id="label">2차</Col>
  628. <Col id="value">2</Col>
  629. </Row>
  630. </Rows>
  631. </Dataset>
  632. <Dataset id="ds_init_baseinfo_healexamgubun_A0088" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  633. <Dataset id="ds_init_baseinfo_plceflag_A0110" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  634. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  635. <ColumnInfo>
  636. <Column id="count" type="INT" size="256"/>
  637. <Column id="payinsubamt" type="INT" size="256"/>
  638. <Column id="payhealcntramt" type="INT" size="256"/>
  639. <Column id="count2" type="INT" size="256"/>
  640. </ColumnInfo>
  641. <Rows>
  642. <Row>
  643. <Col id="count">0</Col>
  644. <Col id="payinsubamt">0</Col>
  645. <Col id="payhealcntramt">0</Col>
  646. <Col id="count2">0</Col>
  647. </Row>
  648. </Rows>
  649. </Dataset>
  650. <Dataset id="ds_main_reqlst_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_reqlst_item_oncolumnchanged">
  651. <ColumnInfo>
  652. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  653. <Column id="cretflag" type="STRING" size="256" sumtext="청구구분"/>
  654. <Column id="sisfilename" type="STRING" size="256" sumtext="sis파일명"/>
  655. <Column id="clamseqno" type="INT" size="256" sumtext="청구일련번호"/>
  656. <Column id="clamdd" type="STRING" size="256" sumtext="청구일자"/>
  657. <Column id="clamamt" type="INT" size="256" sumtext="청구금액"/>
  658. <Column id="payinsubamt" type="INT" size="256" sumtext="공단금액"/>
  659. <Column id="insuadjustamt" type="INT" size="256" sumtext="공단심사조정금액"/>
  660. <Column id="incminsuamt" type="INT" size="256" sumtext="공단입금액"/>
  661. <Column id="insureduamt" type="INT" size="256" sumtext="공단삭감금액"/>
  662. <Column id="insurestamt" type="INT" size="256" sumtext="공단절사금액"/>
  663. <Column id="insuaddamt" type="INT" size="256" sumtext="공단추가금액"/>
  664. <Column id="payhealcntramt" type="INT" size="256" sumtext="보건소금액"/>
  665. <Column id="healcntradjustamt" type="INT" size="256" sumtext="보건소심사조정금액"/>
  666. <Column id="incmhealcntramt" type="INT" size="256" sumtext="보건소입금액"/>
  667. <Column id="healcntrreduamt" type="INT" size="256" sumtext="보건소삭감금액"/>
  668. <Column id="healcntrrestamt" type="INT" size="256" sumtext="보건소절사금액"/>
  669. <Column id="healcntraddamt" type="INT" size="256" sumtext="보건소추가금액"/>
  670. <Column id="clamstat" type="STRING" size="256" sumtext="청구상태"/>
  671. <Column id="clamtrgtcd" type="STRING" size="256" sumtext="청구대상코드"/>
  672. <Column id="rtnchkyn" type="STRING" size="256" sumtext="반환내역조회여부"/>
  673. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  674. <Column id="healexamgubun" type="STRING" size="256" sumtext="건진구분"/>
  675. <Column id="plceflag" type="STRING" size="256" sumtext="건진장소"/>
  676. </ColumnInfo>
  677. </Dataset>
  678. <Dataset id="ds_main_reqdetllst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_reqdetllst_item_oncolumnchanged">
  679. <ColumnInfo>
  680. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  681. <Column id="clamdd" type="STRING" size="256" sumtext="청구일자"/>
  682. <Column id="clamseqno" type="STRING" size="256" sumtext="청구일련번호"/>
  683. <Column id="clamamt" type="INT" size="256" sumtext="청구금액"/>
  684. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  685. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  686. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  687. <Column id="payinsubamt" type="INT" size="256" sumtext="공단금액"/>
  688. <Column id="insuadjustamt" type="INT" size="256" sumtext="공단심사조정액"/>
  689. <Column id="insureduamt" type="INT" size="256" sumtext="공단삭감금액"/>
  690. <Column id="insurestamt" type="INT" size="256" sumtext="공단절사금액"/>
  691. <Column id="insuaddamt" type="INT" size="256" sumtext="공단추가금액"/>
  692. <Column id="payhealcntramt" type="INT" size="256" sumtext="보건소금액"/>
  693. <Column id="healcntradjustamt" type="INT" size="256" sumtext="보건소심사조정액"/>
  694. <Column id="healcntrreduamt" type="INT" size="256" sumtext="보건소삭감금액"/>
  695. <Column id="healcntrrestamt" type="INT" size="256" sumtext="보건소절사금액"/>
  696. <Column id="healcntraddamt" type="INT" size="256" sumtext="보건소추가금액"/>
  697. <Column id="clamstat" type="STRING" size="256" sumtext="청구상태"/>
  698. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  699. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  700. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  701. <Column id="rsrvno" type="INT" size="256" sumtext="에약번호"/>
  702. <Column id="healexamgubun" type="STRING" size="256" sumtext="건진구분"/>
  703. <Column id="plceflag" type="STRING" size="256" sumtext="건진장소"/>
  704. </ColumnInfo>
  705. </Dataset>
  706. <Dataset id="ds_main_reqdetllst_incm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_reqdetllst_incm_oncolumnchanged">
  707. <ColumnInfo>
  708. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  709. <Column id="incomedd" type="STRING" size="256" sumtext="입금일자"/>
  710. <Column id="incomeflag" type="STRING" size="256" sumtext="입금구분"/>
  711. <Column id="cashcardflag" type="STRING" size="256" sumtext="현금카드구분"/>
  712. <Column id="chngamt" type="INT" size="256" sumtext="조정액"/>
  713. <Column id="incomeamt" type="INT" size="256" sumtext="입금액"/>
  714. <Column id="discamt" type="INT" size="256" sumtext="삭감액"/>
  715. <Column id="restamt" type="INT" size="256" sumtext="절사액"/>
  716. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  717. <Column id="userid" type="STRING" size="256" sumtext="입금자"/>
  718. <Column id="clamtrgtcd" type="STRING" size="256" sumtext="청구처코드"/>
  719. <Column id="clamseqno" type="STRING" size="256" sumtext="청구일련번호"/>
  720. <Column id="incomeseqno" type="STRING" size="256" sumtext="입금일련번호"/>
  721. <Column id="incomestat" type="STRING" size="256" sumtext="청구상태"/>
  722. <Column id="rsrvno" type="STRING" size="256" sumtext="에약번호"/>
  723. <Column id="healexamgubun" type="STRING" size="256" sumtext="건진구분"/>
  724. <Column id="plceflag" type="STRING" size="256" sumtext="건진장소"/>
  725. </ColumnInfo>
  726. </Dataset>
  727. <Dataset id="ds_cmb_cretflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  728. <ColumnInfo>
  729. <Column id="label" type="STRING" size="256"/>
  730. <Column id="value" type="STRING" size="256"/>
  731. </ColumnInfo>
  732. <Rows>
  733. <Row>
  734. <Col id="label">일반건진</Col>
  735. <Col id="value">1</Col>
  736. </Row>
  737. <Row>
  738. <Col id="label">구강건진</Col>
  739. <Col id="value">2</Col>
  740. </Row>
  741. <Row>
  742. <Col id="label">암건진</Col>
  743. <Col id="value">3</Col>
  744. </Row>
  745. <Row>
  746. <Col id="label">영유아검진</Col>
  747. <Col id="value">4</Col>
  748. </Row>
  749. </Rows>
  750. </Dataset>
  751. <Dataset id="ds_cmb_clamstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  752. <ColumnInfo>
  753. <Column id="label" type="STRING" size="256"/>
  754. <Column id="value" type="STRING" size="256"/>
  755. </ColumnInfo>
  756. <Rows>
  757. <Row>
  758. <Col id="label">청구</Col>
  759. <Col id="value">N</Col>
  760. </Row>
  761. <Row>
  762. <Col id="label">청구취소</Col>
  763. <Col id="value">C</Col>
  764. </Row>
  765. <Row>
  766. <Col id="label">청구완료</Col>
  767. <Col id="value">Y</Col>
  768. </Row>
  769. </Rows>
  770. </Dataset>
  771. <Dataset id="ds_init_baseinfo_incomeflaglst_A0458" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  772. <Dataset id="ds_send_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  773. <Dataset id="ds_init_baseinfo_hedetlflaglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  774. <Dataset id="ds_chk_checkbox1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  775. <ColumnInfo>
  776. <Column id="label" type="STRING" size="256"/>
  777. <Column id="value" type="STRING" size="256"/>
  778. </ColumnInfo>
  779. <Rows>
  780. <Row>
  781. <Col id="label">청구</Col>
  782. <Col id="value">N</Col>
  783. </Row>
  784. <Row>
  785. <Col id="label">청구취소</Col>
  786. <Col id="value">C</Col>
  787. </Row>
  788. <Row>
  789. <Col id="label">청구완료</Col>
  790. <Col id="value">Y</Col>
  791. </Row>
  792. </Rows>
  793. </Dataset>
  794. <Dataset id="ds_send_cretsave_reqcret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  795. <Dataset id="ds_send_reqsave_rtndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  796. <Dataset id="ds_send_reqsave_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  797. <Dataset id="ds_send_reqsave_reqdetldata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  798. </Objects>
  799. <Bind>
  800. <BindItem id="item0" compid="swt_req.case_cret.combo1" propid="value" datasetid="ds_send" columnid="srchhealexamdetlflag"/>
  801. <BindItem id="item1" compid="swt_req.case_cret.ipt_srchcmpycd" propid="value" datasetid="ds_send" columnid="srchcmpycd"/>
  802. <BindItem id="item2" compid="swt_req.case_cret.opt_srchcmpynm" propid="value" datasetid="ds_send" columnid="srchcmpynm"/>
  803. <BindItem id="item3" compid="swt_req.case_cret.ipt_rsvfrdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  804. <BindItem id="item4" compid="swt_req.case_cret.ipt_rsvtodd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  805. <BindItem id="item5" compid="swt_req.case_cret.input1" propid="value" datasetid="ds_send_cretsave" columnid="sisfilename"/>
  806. <BindItem id="item6" compid="swt_req.case_cret.cmb_srchhealexamgubun1" propid="value" datasetid="ds_send" columnid="srchhealexamgubun"/>
  807. <BindItem id="item7" compid="swt_req.case_cret.cmb_srchplceflag" propid="value" datasetid="ds_send" columnid="srchplceflag"/>
  808. <BindItem id="item8" compid="swt_req.case_cret.cmb_reqtype" propid="value" datasetid="ds_send" columnid="srchreqtype"/>
  809. <BindItem id="item12" compid="swt_req.case_mngt.ipt_clamfromdd" propid="value" datasetid="ds_send" columnid="srchclamfromdd"/>
  810. <BindItem id="item13" compid="swt_req.case_mngt.ipt_clamtodd" propid="value" datasetid="ds_send" columnid="srchclamtodd"/>
  811. <BindItem id="item14" compid="swt_req.case_mngt.input4" propid="value" datasetid="ds_send" columnid="srchclamsisfilename"/>
  812. <BindItem id="item15" compid="swt_req.case_mngt.cmb_srchhealexamgubun2" propid="value" datasetid="ds_send" columnid="srchhealexamgubun2"/>
  813. <BindItem id="item16" compid="swt_req.case_mngt.cmb_srchplceflag2" propid="value" datasetid="ds_send" columnid="srchplceflag2"/>
  814. <BindItem id="item17" compid="swt_req.case_mngt.combo3" propid="value" datasetid="ds_send" columnid="srchclamcretflag"/>
  815. <BindItem id="item9" compid="swt_req.case_cret.count" propid="value" datasetid="ds_temp" columnid="count"/>
  816. <BindItem id="item10" compid="swt_req.case_cret.payinsubamt" propid="value" datasetid="ds_temp" columnid="payinsubamt"/>
  817. <BindItem id="item11" compid="swt_req.case_cret.payhealcntramt" propid="value" datasetid="ds_temp" columnid="payhealcntramt"/>
  818. <BindItem id="item18" compid="swt_req.case_cret.count2" propid="value" datasetid="ds_temp" columnid="count2"/>
  819. </Bind>
  820. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  821. * System Name :
  822. * Job Name :
  823. * Creator :
  824. * Make Date : 2015-11-13
  825. * Description :
  826. *---------------------------------------------------------------------------------------
  827. * Modify Date Modifier Modify Description
  828. *---------------------------------------------------------------------------------------
  829. * 2015-11-13 Live Converter TF->XP
  830. *
  831. *---------------------------------------------------------------------------------------
  832. ****************************************************************************************/
  833. include "com_commonxp::comm_main.xjs";
  834. include "com_basiccodexp::ZBC001.xjs";
  835. include "com_zipcodexp::ZBP001.xjs";
  836. include "pam_pamcomnxp::PAM.xjs";
  837. include "ast_healexamxp::AHA001.xjs";
  838. include "ast_commonxp::AST.xjs";
  839. var m_vHealexamflag = "";
  840. var m_vHealexamdetlflag = "";
  841. var arErrorCode = new HashArray();
  842. function SMAHA05020_onload(obj:Form, e:LoadEventInfo)
  843. {
  844. frmf_initForm(obj);
  845. grdf_initGrid(swt_req.case_cret.grd_reqcretlst);
  846. grdf_initGrid(swt_req.case_mngt.grd_reqlst);
  847. grdf_initGrid(swt_req.case_mngt.switch1.case_clam.grd_reqdetllst);
  848. grdf_initGrid(swt_req.case_mngt.switch1.case_incm.grd_incmlst);
  849. var sFlag = String(frmf_getMenuParam());
  850. if(utlf_isNull(sFlag)){
  851. sFlag = "G01";
  852. }
  853. else if(sFlag == "C"){
  854. sFlag = "C01";
  855. ds_send.setColumn(0, "srchhealexamgubun", "H");
  856. }
  857. m_vHealexamflag = sFlag.substr(0, 1);
  858. m_vHealexamdetlflag = sFlag;
  859. fGetBaseInfo();
  860. fInitCtrl(true);
  861. }
  862. function fGetBaseInfo()
  863. {
  864. var arrParam = [{dsNm: "ds_init_baseinfo_chedetlflaglst_A0069", cdGrpId: "A0069"}
  865. ,{dsNm: "ds_init_baseinfo_ghedetlflaglst_A0070", cdGrpId: "A0070"}
  866. ,{dsNm: "ds_init_baseinfo_asktype_A0108", cdGrpId: "A0108"}
  867. ,{dsNm: "ds_init_baseinfo_incomeflaglst_A0458", cdGrpId: "A0458"}
  868. ,{dsNm: "ds_init_baseinfo_healexamgubun_A0088", cdGrpId: "A0088"}
  869. ,{dsNm: "ds_init_baseinfo_plceflag_A0110", cdGrpId: "A0110"}]
  870. appf_getCodeList(arrParam);
  871. dsf_copyDs(ds_init_baseinfo_hedetlflaglst_item,ds_init_baseinfo_chedetlflaglst_A0069,"after");
  872. dsf_copyDs(ds_init_baseinfo_hedetlflaglst_item,ds_init_baseinfo_ghedetlflaglst_A0070,"after");
  873. frmf_addComboItem("swt_req.case_cret.cmb_srchhealexamgubun1","전체","","above");
  874. frmf_addComboItem("swt_req.case_cret.cmb_srchplceflag","전체","","above");
  875. swt_req.case_cret.cmb_srchplceflag.index = 2;
  876. ds_send.setColumn( 0, "srchhealexamflag" , m_vHealexamflag);
  877. ds_send.setColumn( 0, "srchhealexamdetlflag" , m_vHealexamdetlflag);
  878. var sProp="col=5,row=3,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  879. swt_req.case_mngt.checkbox1.setInitComp(sProp, ds_chk_checkbox1,"value","label","fn_cmpEvent");
  880. swt_req.case_mngt.checkbox1.setData(ds_send.getColumn(0,"srchclamstat").split("▦"),null,false);
  881. }
  882. function fn_cmpEvent()
  883. {
  884. ds_send.setColumn(0, "srchclamstat", String(swt_req.case_mngt.checkbox1.getData()).replace(",", "▦"));
  885. }
  886. function fInitCtrl(bAll)
  887. {
  888. if(bAll == true)
  889. {
  890. var curDt = utlf_getCurrentDate();
  891. ds_send.setColumn(0,"srchfromdd", curDt);
  892. ds_send.setColumn(0,"srchtodd", curDt);
  893. ds_send.setColumn(0,"srchclamfromdd", curDt);
  894. ds_send.setColumn(0,"srchclamtodd", curDt);
  895. swt_req.case_cret.cmb_reqtype.index = 0;
  896. swt_req.case_cret.grd_reqcretlst.setCellProperty("Head", 1, "text", 0);
  897. swt_req.case_mngt.switch1.case_clam.grd_reqdetllst.setCellProperty("Head", 1, "text", 0);
  898. swt_req.tabindex = 0;
  899. }
  900. }
  901. function swt_req_case_cret_ipt_srchcmpycd_onkeyup(obj:Edit, e:KeyEventInfo)
  902. {
  903. if(e.keycode == 13)
  904. {
  905. obj.updateToDataset();
  906. swt_req.case_cret.btn_selcmpy.click();
  907. }
  908. }
  909. function swt_req_case_cret_btn_selcmpy_onclick(obj:Button, e:ClickEventInfo)
  910. {
  911. fGetComnCd("SMAHA01500", "09" , "cd", swt_req.case_cret.ipt_srchcmpycd.value, swt_req.case_cret.ipt_srchcmpycd, swt_req.case_cret.opt_srchcmpynm);
  912. }
  913. function swt_req_case_cret_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  914. {
  915. fGetReqCretList();
  916. fGetReqCretSum();
  917. }
  918. function fGetReqCretList()
  919. {
  920. var oParam = {};
  921. oParam.id = "TRAHA05021";
  922. oParam.service = "healexamreqapp.GnrlReqMngt";
  923. oParam.method = "reqGetReqCretList";
  924. oParam.inds = "req=ds_send";
  925. oParam.outds = "ds_main_reqtrgtlst_item=item";
  926. oParam.async = false;
  927. //oParam.callback = "cf_TRAHA05021";
  928. tranf_submit(oParam);
  929. ds_main_reqtrgtlst_item.updatecontrol = false;
  930. dsf_setFixVal(ds_main_reqtrgtlst_item, "sel:N");
  931. ds_main_reqtrgtlst_item.updatecontrol = true;
  932. }
  933. function ds_main_reqtrgtlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  934. {
  935. if(e.columnid == "sel")
  936. {
  937. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  938. if(obj.getColumn(e.row, "sel") == "Y")
  939. {
  940. var hngnm = obj.getColumn(e.row, "hngnm");
  941. var rrgstno = obj.getColumn(e.row, "rrgstno");
  942. for(var i = 0; i < obj.rowcount; i++)
  943. {
  944. if(hngnm == obj.getColumn(i, "hngnm") && rrgstno != obj.getColumn(i, "rrgstno"))
  945. {
  946. sysf_messageBox("청구대상자 리스트에 동명이인이","I010");
  947. return;
  948. }
  949. }
  950. }
  951. }
  952. }
  953. function ds_main_reqlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  954. {
  955. if(e.columnid == "sel")
  956. {
  957. for(var i = 0 ; i < obj.rowcount ; i++) {
  958. obj.setColumn(i, "sel", "N");
  959. }
  960. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  961. fGetClamDetlList();
  962. }
  963. }
  964. function swt_req_case_cret_grd_reqcretlst_onmouseup(obj:Grid, e:GridMouseEventInfo)
  965. {
  966. //fGetReqCretSum();
  967. }
  968. function fGetReqCretSum()
  969. {
  970. var count = 0;
  971. var samecount = 0;
  972. var payinsubamt = 0;
  973. var payhealcntramt = 0;
  974. var rows = grdf_getSelectedRows(swt_req.case_cret.grd_reqcretlst);
  975. trace(rows);
  976. for(var i = 0 ; i < rows.length; i++) {
  977. var m_row = rows[i]
  978. count += 1;
  979. var rgstno = ds_main_reqtrgtlst_item.getColumn(m_row, "rrgstno");
  980. for(var j = i+1 ; j < rows.length; j++) {
  981. if(ds_main_reqtrgtlst_item.getColumn(rows[j], "rrgstno") == rgstno) {
  982. samecount += 1;
  983. break;
  984. }
  985. }
  986. payinsubamt += parseInt(ds_main_reqtrgtlst_item.getColumn(m_row, "payinsubamt"));
  987. payhealcntramt += parseInt(ds_main_reqtrgtlst_item.getColumn(m_row, "payhealcntramt"));
  988. }
  989. ds_temp.setColumn( 0, "count" , count);
  990. ds_temp.setColumn( 0, "payinsubamt" , payinsubamt);
  991. ds_temp.setColumn( 0, "payhealcntramt" , payhealcntramt);
  992. ds_temp.setColumn( 0, "count2" , count - samecount);
  993. }
  994. function swt_req_case_cret_button1_onclick(obj:Button, e:ClickEventInfo)
  995. {
  996. grdf_exportExcel(swt_req.case_cret.grd_reqcretlst, "excel", "SheetName", "true", "", "");
  997. }
  998. function swt_req_case_mngt_input4_onkeyup(obj:Edit, e:KeyEventInfo)
  999. {
  1000. if(e.keycode == 13)
  1001. {
  1002. obj.updateToDataset();
  1003. swt_req.case_mngt.btn_srch2.click();
  1004. }
  1005. }
  1006. function swt_req_case_mngt_btn_srch2_onclick(obj:Button, e:ClickEventInfo)
  1007. {
  1008. fGetClamList();
  1009. }
  1010. function fGetClamList()
  1011. {
  1012. var oParam = {};
  1013. oParam.id = "TRAHA05022";
  1014. oParam.service = "healexamreqapp.GnrlReqMngt";
  1015. oParam.method = "reqGetClamList";
  1016. oParam.inds = "req=ds_send";
  1017. oParam.outds = "ds_main_reqlst_item=item";
  1018. oParam.async = false;
  1019. oParam.callback = "cf_TRAHA05022";
  1020. tranf_submit(oParam);
  1021. if(arErrorCode.pop("TRAHA05022") > -1)
  1022. {
  1023. ds_main_reqlst_item.updatecontrol = false;
  1024. dsf_setFixVal(ds_main_reqlst_item, "sel:N");
  1025. ds_main_reqlst_item.updatecontrol = true;
  1026. ds_main_reqdetllst_item.clearData();
  1027. ds_main_reqdetllst_incm.clearData();
  1028. }
  1029. }
  1030. function cf_TRAHA05022(sSvcId, nErrorCode, sErrorMsg)
  1031. {
  1032. arErrorCode.push(sSvcId, nErrorCode);
  1033. if(nErrorCode < 0) return;
  1034. }
  1035. function fGetClamDetlList()
  1036. {
  1037. ds_main_reqdetllst_item.clearData();
  1038. ds_send_detl.clearData();
  1039. dsf_copyColInfo(ds_send_detl, ds_main_reqlst_item);
  1040. var idx = ds_main_reqlst_item.rowposition;
  1041. if(ds_main_reqlst_item.getColumn(idx,"sel") == "Y")
  1042. {
  1043. ds_send_detl.copyRow(ds_send_detl.addRow(),ds_main_reqlst_item,idx);
  1044. }
  1045. else
  1046. {
  1047. ds_main_reqlst_item.setColumn(idx, "sel", "N");
  1048. }
  1049. ds_main_reqdetllst_incm.clearData();
  1050. var oParam = {};
  1051. oParam.id = "TRAHA05023";
  1052. oParam.service = "healexamreqapp.GnrlReqMngt";
  1053. oParam.method = "reqGetClamDetlList";
  1054. oParam.inds = "req=ds_send_detl";
  1055. oParam.outds = "ds_main_reqdetllst_item=item ds_main_reqdetllst_incm=incm";
  1056. oParam.async = false;
  1057. oParam.callback = "cf_TRAHA05023";
  1058. tranf_submit(oParam);
  1059. if(arErrorCode.pop("TRAHA05023") > -1)
  1060. {
  1061. ds_main_reqdetllst_item.updatecontrol = false;
  1062. dsf_setFixVal(ds_main_reqdetllst_item, "sel:N");
  1063. ds_main_reqdetllst_item.updatecontrol = true;
  1064. ds_main_reqdetllst_incm.updatecontrol = false;
  1065. dsf_setFixVal(ds_main_reqdetllst_incm, "sel:N");
  1066. ds_main_reqdetllst_incm.updatecontrol = true;
  1067. }
  1068. }
  1069. function cf_TRAHA05023(sSvcId, nErrorCode, sErrorMsg)
  1070. {
  1071. arErrorCode.push(sSvcId, nErrorCode);
  1072. if(nErrorCode < 0) return;
  1073. }
  1074. function ds_main_reqdetllst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1075. {
  1076. if(e.columnid == "sel")
  1077. {
  1078. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1079. }
  1080. }
  1081. function ds_main_reqdetllst_incm_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1082. {
  1083. if(e.columnid == "sel")
  1084. {
  1085. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1086. }
  1087. }
  1088. function swt_req_case_mngt_button8_onclick(obj:Button, e:ClickEventInfo)
  1089. {
  1090. fSetCret();
  1091. }
  1092. function fSetCret()
  1093. {
  1094. ds_main_reqlst_item.applyChange();
  1095. ds_send_cretsave_reqcret.clearData();
  1096. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1097. {
  1098. var chk = ds_main_reqlst_item.getColumn(i, "sel");
  1099. if(chk == "Y")
  1100. {
  1101. ds_main_reqlst_item.updatecontrol = false;
  1102. ds_main_reqlst_item.setRowType(i, "i");
  1103. ds_main_reqlst_item.updatecontrol = true;
  1104. }
  1105. }
  1106. var cretData = grdf_getGridUpdateData(swt_req.case_mngt.grd_reqlst);
  1107. ds_send_cretsave_reqcret.copyData(cretData, true);
  1108. if(ds_send_cretsave_reqcret.rowcount != 0)
  1109. {
  1110. var oParam = {};
  1111. oParam.id = "TXAHA05027";
  1112. oParam.service = "healexamreqapp.GnrlReqMngt";
  1113. oParam.method = "reqSetCretInfo";
  1114. oParam.inds = "req=ds_send_cretsave_reqcret";
  1115. oParam.outds = "ds_=exe";
  1116. oParam.async = false;
  1117. oParam.callback = "cf_TXAHA05027";
  1118. tranf_submit(oParam);
  1119. if(arErrorCode.pop("TXAHA05027") > -1)
  1120. {
  1121. fGetReqCretList();
  1122. fGetClamList();
  1123. }
  1124. }
  1125. else
  1126. {
  1127. sysf_messageBox("저장 내역이 ", "E014");
  1128. return;
  1129. }
  1130. }
  1131. function cf_TXAHA05027(sSvcId, nErrorCode, sErrorMsg)
  1132. {
  1133. arErrorCode.push(sSvcId, nErrorCode);
  1134. if(nErrorCode < 0) return;
  1135. }
  1136. function swt_req_case_mngt_button3_onclick(obj:Button, e:ClickEventInfo)
  1137. {
  1138. fSetAmtCopy();
  1139. }
  1140. function fSetAmtCopy()
  1141. {
  1142. var chkYn = "N";
  1143. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1144. {
  1145. var chk = ds_main_reqlst_item.getColumn(i, "sel");
  1146. if(chk == "Y")
  1147. {
  1148. ds_main_reqlst_item.setColumn(i, "incminsuamt", ds_main_reqlst_item.getColumn(i, "insuadjustamt"));
  1149. ds_main_reqlst_item.setColumn(i, "incmhealcntramt", ds_main_reqlst_item.getColumn(i, "healcntradjustamt"));
  1150. chkYn = "Y";
  1151. }
  1152. }
  1153. if(chkYn == "N")
  1154. {
  1155. sysf_messageBox("선택된 내역이 ", "E014");
  1156. return;
  1157. }
  1158. }
  1159. function swt_req_case_mngt_button2_onclick(obj:Button, e:ClickEventInfo)
  1160. {
  1161. grdf_exportExcel(swt_req.case_mngt.grd_reqlst, "excel", "SheetName", "true", "", "");
  1162. }
  1163. function swt_req_case_mngt_switch1_case_clam_btn_rtn2_onclick(obj:Button, e:ClickEventInfo)
  1164. {
  1165. frmf_modal("SPAHR00900", "SPAHR00900", "", "", "", "", "", "", "", "", "", "", "M");
  1166. }
  1167. function swt_req_case_mngt_switch1_case_clam_btn_rtn_onclick(obj:Button, e:ClickEventInfo)
  1168. {
  1169. fSetRtnClam();
  1170. }
  1171. function fSetRtnClam()
  1172. {
  1173. ds_main_reqdetllst_item.applyChange();
  1174. var endCnt = 0;
  1175. var cnclCnt = 0;
  1176. var rtnCnt = 0;
  1177. for(var i = 0; i < ds_main_reqdetllst_item.rowcount; i++)
  1178. {
  1179. if(ds_main_reqdetllst_item.getColumn(i, "sel") == "Y")
  1180. {
  1181. var clamstat = ds_main_reqdetllst_item.getColumn(i, "clamstat");
  1182. ds_main_reqdetllst_item.updatecontrol = false;
  1183. ds_main_reqdetllst_item.setRowType(i, "i");
  1184. ds_main_reqdetllst_item.updatecontrol = true;
  1185. if(clamstat == "Y") endCnt++;
  1186. if(clamstat == "C") cnclCnt++;
  1187. if(clamstat == "R") rtnCnt++;
  1188. }
  1189. }
  1190. if(endCnt > 0)
  1191. {
  1192. sysf_messageBox("청구완료 내역을 반환 할수","I004");
  1193. return;
  1194. }
  1195. if(cnclCnt > 0)
  1196. {
  1197. sysf_messageBox("청구취소 내역을 반환 할수","I004");
  1198. return;
  1199. }
  1200. if(rtnCnt > 0)
  1201. {
  1202. sysf_messageBox("청구반환 내역을 반환 할수","I004");
  1203. return;
  1204. }
  1205. var rtnData = grdf_getGridUpdateData(swt_req.case_mngt.switch1.case_clam.grd_reqdetllst);
  1206. ds_send_reqsave_rtndata.copyData(rtnData, true);
  1207. if(ds_send_reqsave_rtndata.rowcount != 0)
  1208. {
  1209. var oParam = {};
  1210. oParam.id = "TXAHA05023";
  1211. oParam.service = "healexamreqapp.GnrlReqMngt";
  1212. oParam.method = "reqExeReturnClam";
  1213. oParam.inds = "req=ds_send_reqsave_rtndata";
  1214. oParam.outds = "ds_=exe";
  1215. oParam.async = false;
  1216. oParam.callback = "cf_TXAHA05023";
  1217. tranf_submit(oParam);
  1218. if(arErrorCode.pop("TXAHA05023") > -1)
  1219. {
  1220. fGetClamList();
  1221. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1222. {
  1223. if(ds_main_reqlst_item.getColumn(i, "clamseqno") == ds_send_detl.getColumn(0, "clamseqno"))
  1224. {
  1225. ds_main_reqlst_item.setColumn(i, "sel", "Y");
  1226. var oParam = {};
  1227. oParam.id = "TRAHA05023";
  1228. oParam.service = "healexamreqapp.GnrlReqMngt";
  1229. oParam.method = "reqGetClamDetlList";
  1230. oParam.inds = "req=ds_send_detl";
  1231. oParam.outds = "ds_main_reqdetllst_item=item ds_main_reqdetllst_incm=incm";
  1232. oParam.async = false;
  1233. oParam.callback = "cf_TRAHA05023";
  1234. tranf_submit(oParam);
  1235. if(arErrorCode.pop("TRAHA05023") > -1)
  1236. {
  1237. ds_main_reqdetllst_item.updatecontrol = false;
  1238. dsf_setFixVal(ds_main_reqdetllst_item, "sel:N");
  1239. ds_main_reqdetllst_item.updatecontrol = true;
  1240. ds_main_reqdetllst_incm.updatecontrol = false;
  1241. dsf_setFixVal(ds_main_reqdetllst_incm, "sel:N");
  1242. ds_main_reqdetllst_incm.updatecontrol = true;
  1243. }
  1244. }
  1245. }
  1246. }
  1247. }
  1248. else
  1249. {
  1250. sysf_messageBox("반환 내역이 " , "E014");
  1251. return;
  1252. }
  1253. }
  1254. function cf_TXAHA05023(sSvcId, nErrorCode, sErrorMsg)
  1255. {
  1256. arErrorCode.push(sSvcId, nErrorCode);
  1257. if(nErrorCode < 0) return;
  1258. }
  1259. function swt_req_case_mngt_switch1_case_clam_button4_onclick(obj:Button, e:ClickEventInfo)
  1260. {
  1261. fSetDetAmtCopy();
  1262. }
  1263. function fSetDetAmtCopy()
  1264. {
  1265. for(var i = 0; i < ds_main_reqdetllst_item.rowcount; i++)
  1266. {
  1267. ds_main_reqdetllst_item.setColumn(i, "insuadjustamt", ds_main_reqdetllst_item.getColumn(i, "payinsubamt"));
  1268. ds_main_reqdetllst_item.setColumn(i, "healcntradjustamt", ds_main_reqdetllst_item.getColumn(i, "payhealcntramt"));
  1269. }
  1270. }
  1271. function swt_req_case_mngt_switch1_case_clam_btn_detlexcel_onclick(obj:Button, e:ClickEventInfo)
  1272. {
  1273. grdf_exportExcel(swt_req.case_mngt.switch1.case_clam.grd_reqdetllst, "excel", "SheetName", "true", "", "");
  1274. }
  1275. function swt_req_case_mngt_switch1_case_incm_btn_incmexcel_onclick(obj:Button, e:ClickEventInfo)
  1276. {
  1277. grdf_exportExcel(swt_req.case_mngt.switch1.case_incm.grd_incmlst, "excel", "SheetName", "true", "", "");
  1278. }
  1279. function btn_savecret_onclick(obj:Button, e:ClickEventInfo)
  1280. {
  1281. if(isMagmAprv())
  1282. {
  1283. return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
  1284. }
  1285. if(swt_req.tabindex == 0)
  1286. {
  1287. if(sysf_messageBox("청구생성을","Q004") == 6)
  1288. {
  1289. fSetReqCret(); //청구생성
  1290. fGetReqCretSum();
  1291. }
  1292. }
  1293. }
  1294. function fSetReqCret()
  1295. {
  1296. if(utlf_isNull(ds_send.getColumn(0, "srchhealexamgubun")))
  1297. {
  1298. sysf_messageBox("건진구분 ", "E014");
  1299. return;
  1300. }
  1301. if(utlf_isNull(ds_send.getColumn(0, "srchplceflag")))
  1302. {
  1303. sysf_messageBox("건진장소 ", "E014");
  1304. return;
  1305. }
  1306. if(utlf_isNull(ds_send_cretsave.getColumn(0, "sisfilename")))
  1307. {
  1308. sysf_messageBox("파일명 ", "E014");
  1309. return;
  1310. }
  1311. ds_main_reqtrgtlst_item.applyChange();
  1312. ds_send_cretsave_reqcret.clearData();
  1313. for(var i = 0; i < ds_main_reqtrgtlst_item.rowcount; i++)
  1314. {
  1315. var chk = ds_main_reqtrgtlst_item.getColumn(i, "sel");
  1316. if(chk == "Y")
  1317. {
  1318. dsf_makeValue(ds_main_reqtrgtlst_item, "cretflag", "string", ds_send.getColumn(0, "srchreqtype"), i);
  1319. dsf_makeValue(ds_main_reqtrgtlst_item, "plceflag", "string", ds_send.getColumn(0, "srchplceflag"), i);
  1320. dsf_makeValue(ds_main_reqtrgtlst_item, "sisfilename", "string", ds_send_cretsave.getColumn(0, "sisfilename"), i);
  1321. ds_main_reqtrgtlst_item.updatecontrol = false;
  1322. ds_main_reqtrgtlst_item.setRowType(i, "i");
  1323. ds_main_reqtrgtlst_item.updatecontrol = true;
  1324. }
  1325. }
  1326. var cretData = grdf_getGridUpdateData(swt_req.case_cret.grd_reqcretlst, "insert");
  1327. ds_send_cretsave_reqcret.copyData(cretData, true);
  1328. if(ds_send_cretsave_reqcret.rowcount != 0)
  1329. {
  1330. var oParam = {};
  1331. oParam.id = "TXAHA05021";
  1332. oParam.service = "healexamreqapp.GnrlReqMngt";
  1333. oParam.method = "reqExeReqCretInfo";
  1334. oParam.inds = "req=ds_send_cretsave_reqcret";
  1335. oParam.outds = "ds_=exe";
  1336. oParam.async = false;
  1337. oParam.callback = "cf_TXAHA05021";
  1338. tranf_submit(oParam);
  1339. if(arErrorCode.pop("TXAHA05021") > -1)
  1340. {
  1341. fGetReqCretList();
  1342. fGetClamList();
  1343. ds_send_cretsave.setColumn(0, "sisfilename", "");
  1344. }
  1345. }
  1346. else
  1347. {
  1348. sysf_messageBox("생성할 내역이 ", "E014");
  1349. return;
  1350. }
  1351. }
  1352. function cf_TXAHA05021(sSvcId, nErrorCode, sErrorMsg)
  1353. {
  1354. arErrorCode.push(sSvcId, nErrorCode);
  1355. if(nErrorCode < 0) return;
  1356. }
  1357. function btn_savaincm_onclick(obj:Button, e:ClickEventInfo)
  1358. {
  1359. if(isMagmAprv())
  1360. {
  1361. return false;
  1362. }
  1363. if(swt_req.tabindex == 1)
  1364. {
  1365. if(sysf_messageBox("입금내역을","Q002") == 6)
  1366. {
  1367. fSetClamIncm("I");
  1368. }
  1369. }
  1370. }
  1371. function fSetClamIncm(vClamFlag)
  1372. {
  1373. if(utlf_isNull(vClamFlag)) return;
  1374. ds_send_reqsave_reqdata.clearData();
  1375. ds_send_reqsave_reqdetldata.clearData();
  1376. var reqData = "";
  1377. var reqDetlData = "";
  1378. var cnclCnt = 0;
  1379. ds_main_reqlst_item.applyChange();
  1380. ds_main_reqdetllst_item.applyChange();
  1381. for( var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1382. {
  1383. if(ds_main_reqlst_item.getColumn(i, "sel") == "Y")
  1384. {
  1385. if(ds_main_reqlst_item.getColumn(i, "clamstat") == "C")
  1386. {
  1387. cnclCnt++;
  1388. }
  1389. ds_main_reqlst_item.updatecontrol = false;
  1390. ds_main_reqlst_item.setRowType(i, "i");
  1391. ds_main_reqlst_item.updatecontrol = true;
  1392. }
  1393. }
  1394. for(var j = 0; j < ds_main_reqdetllst_item.rowcount; j++)
  1395. {
  1396. if(!utlf_isNull(ds_main_reqdetllst_item.getColumn(j, "clamstat")))
  1397. {
  1398. ds_main_reqdetllst_item.updatecontrol = false;
  1399. ds_main_reqdetllst_item.setRowType(j, "i");
  1400. ds_main_reqdetllst_item.updatecontrol = true;
  1401. }
  1402. }
  1403. var reqData = grdf_getGridUpdateData(swt_req.case_mngt.grd_reqlst);
  1404. ds_send_reqsave_reqdata.copyData(reqData, true)
  1405. grdf_setStatusColumn(reqData, "m");
  1406. var reqDetlData = grdf_getGridUpdateData(swt_req.case_mngt.switch1.case_clam.grd_reqdetllst);
  1407. grdf_setStatusColumn(reqDetlData, "m");
  1408. ds_send_reqsave_reqdetldata.copyData(reqDetlData, true)
  1409. if(cnclCnt > 0)
  1410. {
  1411. sysf_messageBox("청구취소 내역은 입금저장" , "E001");
  1412. return;
  1413. }
  1414. if(ds_send_reqsave_reqdata.rowcount == 0)
  1415. {
  1416. sysf_messageBox("선택된 내역이" , "I004");
  1417. return;
  1418. }
  1419. ds_send_reqsave_reqdata.addColumn("execlamflag", "string");
  1420. dsf_setDefaultVal(ds_send_reqsave_reqdata, "execlamflag:"+vClamFlag);
  1421. var oParam = {};
  1422. oParam.id = "TXAHA05022";
  1423. oParam.service = "healexamreqapp.GnrlReqMngt";
  1424. oParam.method = "reqExeClamMngt";
  1425. oParam.inds = "req=ds_send_reqsave_reqdata reqdetl=ds_send_reqsave_reqdetldata";
  1426. oParam.outds = "ds_=exe";
  1427. oParam.async = false;
  1428. oParam.callback = "cf_TXAHA05022";
  1429. tranf_submit(oParam);
  1430. if(arErrorCode.pop("TXAHA05022") > -1)
  1431. {
  1432. ds_main_reqlst_item.applyChange();
  1433. ds_main_reqdetllst_item.applyChange();
  1434. fGetClamList();
  1435. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1436. {
  1437. if(ds_main_reqlst_item.getColumn(i, "clamseqno") == ds_send_detl.getColumn(0, "clamseqno"))
  1438. {
  1439. ds_main_reqlst_item.setColumn(i, "sel", "Y");
  1440. var oParam = {};
  1441. oParam.id = "TRAHA05023";
  1442. oParam.service = "healexamreqapp.GnrlReqMngt";
  1443. oParam.method = "reqGetClamDetlList";
  1444. oParam.inds = "req=ds_send_detl";
  1445. oParam.outds = "ds_main_reqdetllst_item=item ds_main_reqdetllst_incm=incm";
  1446. oParam.async = false;
  1447. oParam.callback = "cf_TRAHA05023";
  1448. tranf_submit(oParam);
  1449. if(arErrorCode.pop("TRAHA05023") > -1)
  1450. {
  1451. ds_main_reqdetllst_item.updatecontrol = false;
  1452. dsf_setFixVal(ds_main_reqdetllst_item, "sel:N");
  1453. ds_main_reqdetllst_item.updatecontrol = true;
  1454. ds_main_reqdetllst_incm.updatecontrol = false;
  1455. dsf_setFixVal(ds_main_reqdetllst_incm, "sel:N");
  1456. ds_main_reqdetllst_incm.updatecontrol = true;
  1457. }
  1458. }
  1459. }
  1460. }
  1461. }
  1462. function cf_TXAHA05022(sSvcId, nErrorCode, sErrorMsg)
  1463. {
  1464. arErrorCode.push(sSvcId, nErrorCode);
  1465. if(nErrorCode < 0) return;
  1466. }
  1467. function btn_clamcncl_onclick(obj:Button, e:ClickEventInfo)
  1468. {
  1469. if(isMagmAprv())
  1470. {
  1471. return false;
  1472. }
  1473. if(swt_req.tabindex == 1)
  1474. {
  1475. if(sysf_messageBox("청구내역을","Q007") == 6)
  1476. {
  1477. fExeClamCncl("C");
  1478. }
  1479. }
  1480. }
  1481. function fExeClamCncl(vClamFlag)
  1482. {
  1483. if(utlf_isNull(vClamFlag)) return;
  1484. ds_send_reqsave_reqdata.clearData();
  1485. ds_send_reqsave_reqdetldata.clearData();
  1486. ds_main_reqlst_item.applyChange();
  1487. var cnclCnt = 0;
  1488. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1489. {
  1490. var srcClamStat = ds_main_reqlst_item.getColumn(i, "clamstat");
  1491. if(ds_main_reqlst_item.getColumn(i, "sel") == "Y")
  1492. {
  1493. if(ds_main_reqlst_item.getColumn(i, "clamstat") == "C")
  1494. {
  1495. cnclCnt++;
  1496. }
  1497. ds_main_reqlst_item.updatecontrol = false;
  1498. ds_main_reqlst_item.setRowType(i, "i");
  1499. ds_main_reqlst_item.updatecontrol = true;
  1500. }
  1501. }
  1502. if(cnclCnt > 0)
  1503. {
  1504. sysf_messageBox("이미 청구취소 된 내역" ,"E008");
  1505. return;
  1506. }
  1507. var reqData = grdf_getGridUpdateData(swt_req.case_mngt.grd_reqlst);
  1508. ds_send_reqsave_reqdata.copyData(reqData, true);
  1509. if(ds_send_reqsave_reqdata.rowcount != 0)
  1510. {
  1511. if(ds_main_reqdetllst_incm.rowcount > 0)
  1512. {
  1513. sysf_messageBox("입금내역이 존재하는 청구내역은 청구취소", "E001");
  1514. return;
  1515. }
  1516. ds_send_reqsave_reqdetldata.copyData(grdf_getGridUpdateData(swt_req.case_mngt.switch1.case_clam.grd_reqdetllst), true);
  1517. ds_send_reqsave_reqdata.addColumn("execlamflag", "string");
  1518. dsf_setDefaultVal(ds_send_reqsave_reqdata, "execlamflag:"+vClamFlag);
  1519. var oParam = {};
  1520. oParam.id = "TXAHA05022";
  1521. oParam.service = "healexamreqapp.GnrlReqMngt";
  1522. oParam.method = "reqExeClamMngt";
  1523. oParam.inds = "req=ds_send_reqsave_reqdata reqdetl=ds_send_reqsave_reqdetldata";
  1524. oParam.outds = "ds_=exe";
  1525. oParam.async = false;
  1526. oParam.callback = "cf_TXAHA05022";
  1527. tranf_submit(oParam);
  1528. if(arErrorCode.pop("TXAHA05022") > -1)
  1529. {
  1530. ds_main_reqlst_item.applyChange();
  1531. ds_main_reqdetllst_item.applyChange();
  1532. fGetClamList();
  1533. for(var i = 0; i < ds_main_reqlst_item.rowcount; i++)
  1534. {
  1535. if(ds_main_reqlst_item.getColumn(i, "clamseqno") == ds_send_detl.getColumn(0, "clamseqno"))
  1536. {
  1537. ds_main_reqlst_item.setColumn(i, "sel", "Y");
  1538. var oParam = {};
  1539. oParam.id = "TRAHA05023";
  1540. oParam.service = "healexamreqapp.GnrlReqMngt";
  1541. oParam.method = "reqGetClamDetlList";
  1542. oParam.inds = "req=ds_send_detl";
  1543. oParam.outds = "ds_main_reqdetllst_item=item ds_main_reqdetllst_incm=incm";
  1544. oParam.async = false;
  1545. oParam.callback = "cf_TRAHA05023";
  1546. tranf_submit(oParam);
  1547. if(arErrorCode.pop("TRAHA05023") > -1)
  1548. {
  1549. ds_main_reqdetllst_item.updatecontrol = false;
  1550. dsf_setFixVal(ds_main_reqdetllst_item, "sel:N");
  1551. ds_main_reqdetllst_item.updatecontrol = true;
  1552. ds_main_reqdetllst_incm.updatecontrol = false;
  1553. dsf_setFixVal(ds_main_reqdetllst_incm, "sel:N");
  1554. ds_main_reqdetllst_incm.updatecontrol = true;
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. else
  1561. {
  1562. sysf_messageBox("청구 내역이 " , "E014");
  1563. return;
  1564. }
  1565. }
  1566. function swt_req_case_cret_grd_reqcretlst_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1567. {
  1568. fGetReqCretSum();
  1569. }]]></Script>
  1570. </Form>
  1571. </FDL>